package com.benson.generic.erasedtype;

import java.util.ArrayList;
import java.util.List;

public class ErasedTypeEquivalence {

	public static void main(String[] args) {
		Class<?> c1 = new ArrayList<String>().getClass();
//		Class<ArrayList<String>> c11 = ArrayList.class;
		Class<?> c2 = new ArrayList<Integer>().getClass();
		
		System.out.println(c1 == c2);
		
		List<String> result = get(new ArrayList<String>());
	}
	
//	public static <T> Class<T> getClass(T t){
//		return t.getClass();
//	}
	
	public static <T> T get(T t){
		return t;
	}
}
